package com.tangruojie.factory;

import com.tangruojie.dao.OrderDao;
import com.tangruojie.dao.impl.OrderDaoImpl;

/**
 * 使用静态工厂实例化bean
 */
public class OrderDaoFactory {

    /**
     * 静态方法
     */
    public static OrderDao getOrderDao() {
        System.out.println("factory setup....");
        return new OrderDaoImpl();
    }

}
